import os
if os.path.exists("aa.txt"):
    data = open("aaa.txt")
    for each_line in data:
        try:
            (role,line_spoken) = each_line.split(":",10)
            print(role,end="")
            print("said",end="")
            print(line_spoken,end="")
        except ValueError:  #指定特定的错误，也可以直接except：
            pass
    data.close()
else:
    print("The path is missed")